package com.share.dao.oa.org;

import java.util.LinkedHashMap;
import java.util.List;

import com.share.bean.oa.org.Organization;
import com.share.commons.base.query.PageModel;

/**
 * <p>Title：OA-组织机构基础DAO接口</p>
 * <p>Description：</p>
 * @Author：杨浩泉
 * @Date：2010-4-28
 */
public interface OrganizationDao {

	public void saveOrgDao(Organization org) throws RuntimeException ;
	
	public void deleteOrgDao(Object[] ids) throws RuntimeException ;
	
	public void updateOrgDao(Organization org) throws RuntimeException ;
	
	public Organization loadById(String id) throws RuntimeException ;
	
	public PageModel<Organization> loadScrollOrgDao(String hql,int firstResult,int maxResult,LinkedHashMap<String, String> orderby) throws RuntimeException ;
	
	public PageModel<Organization> seacheOrgDataDao(String hql,String whereHQL,List<Object> param,int firstResult,int maxResult,LinkedHashMap<String, String> orderby) throws RuntimeException ;
	
	public List<Organization> getOrgAllDao(String hql, LinkedHashMap<String, String> orderby) throws RuntimeException ;
	
}
